home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / catn / menu.n < prev    next >
Text File  |  1994-09-20  |  25KB  |  661 lines

  1.  
  2.  
  3.  
  4. menu(n)                    Tk Commands
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      menu - Create and manipulate menu widgets
  12.  
  13. SYNOPSIS
  14.      menu _p_a_t_h_N_a_m_e ?_o_p_t_i_o_n_s?
  15.  
  16. STANDARD OPTIONS
  17.      activeBackground               background      disabledForeground|
  18.      activeBorderWidth              borderWidth     font           |
  19.      activeForeground               cursor          foreground     |
  20.  
  21.      See the ``options'' manual entry for details on the standard
  22.      options.
  23.  
  24. WIDGET-SPECIFIC OPTIONS
  25.      Name:           postCommand
  26.      Class:          Command                                       |
  27.      Command-Line Switch:-postcommand                              |
  28.  
  29.                                                                         ||
  30.           If this option is specified then it provides a Tcl com-  |
  31.           mand to execute each time the menu is posted.  The com-  |
  32.           mand is invoked by the post widget command before post-  |
  33.           ing the menu.
  34.  
  35.      Name:           selector
  36.      Class:          Foreground
  37.      Command-Line Switch:-selector
  38.  
  39.           For menu entries that are check buttons or  radio  but-
  40.           tons, this option specifies the color to display in the
  41.           selector when the  check  button  or  radio  button  is
  42.           selected.
  43. _________________________________________________________________
  44.  
  45.  
  46. INTRODUCTION
  47.      The menu command creates a new top-level  window  (given  by
  48.      the  _p_a_t_h_N_a_m_e  argument)  and  makes  it into a menu widget.
  49.      Additional options, described above, may be specified on the
  50.      command  line or in the option database to configure aspects
  51.      of the menu such as its colors and font.  The  menu  command
  52.      returns  its _p_a_t_h_N_a_m_e argument.  At the time this command is
  53.      invoked, there must not exist a window named  _p_a_t_h_N_a_m_e,  but
  54.      _p_a_t_h_N_a_m_e's parent must exist.
  55.  
  56.      A menu is a widget that displays a  collection  of  one-line
  57.      entries arranged in a column.  There exist several different
  58.      types of entries, each with different  properties.   Entries
  59.      of  different  types may be combined in a single menu.  Menu
  60.  
  61.  
  62.  
  63. Tk                                                              1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. menu(n)                    Tk Commands
  71.  
  72.  
  73.  
  74.      entries are not the same as entry widgets.   In  fact,  menu
  75.      entries  are  not  even distinct widgets; the entire menu is
  76.      one widget.
  77.  
  78.      Menu entries are displayed with up to three separate fields.
  79.      The  main  field is a label in the form of text or a bitmap,
  80.      which is determined by the -label or -bitmap option for  the
  81.      entry.   If  the   -accelerator  option  is specified for an
  82.      entry then a second textual field is displayed to the  right
  83.      of  the  label.  The accelerator typically describes a keys-
  84.      troke sequence that may be typed in the application to cause
  85.      the same result as invoking the menu entry.  The third field
  86.      is a _s_e_l_e_c_t_o_r.  The selector  is  present  only  for  check-
  87.      button  or  radio-button  entries.  It indicates whether the
  88.      entry is selected or not, and is displayed to  the  left  of
  89.      the entry's string.
  90.  
  91.      In normal use, an entry becomes active (displays itself dif-
  92.      ferently)  whenever the mouse pointer is over the entry.  If
  93.      a mouse button is released over the entry then the entry  is
  94.      _i_n_v_o_k_e_d.   The  effect  of  invocation is different for each
  95.      type of entry; these effects are described below in the sec-
  96.      tions on individual entries.
  97.  
  98.      Entries may be  _d_i_s_a_b_l_e_d,  which  causes  their  labels  and
  99.      accelerators to be displayed with dimmer colors.  A disabled
  100.      entry cannot be activated or invoked.  Disabled entries  may
  101.      be  re-enabled,  at  which  point  it  becomes  possible  to
  102.      activate and invoke them again.
  103.  
  104.  
  105. COMMAND ENTRIES
  106.      The most common kind of menu entry is a command entry, which
  107.      behaves  much like a button widget.  When a command entry is
  108.      invoked, a Tcl command is  executed.   The  Tcl  command  is
  109.      specified with the -command option.
  110.  
  111.  
  112. SEPARATOR ENTRIES
  113.      A separator is an entry that is displayed  as  a  horizontal
  114.      dividing line.  A separator may not be activated or invoked,
  115.      and it has no behavior other than its display appearance.
  116.  
  117.  
  118. CHECK-BUTTON ENTRIES
  119.      A check-button menu entry behaves much like  a  check-button
  120.      widget.   When  it  is  invoked  it  toggles  back and forth
  121.      between the selected and deselected states.  When the  entry
  122.      is  selected,  a  particular value is stored in a particular
  123.      global variable (as determined by the -onvalue and -variable
  124.      options  for  the  entry);   when  the  entry  is deselected
  125.      another value (determined by the -offvalue option) is stored
  126.  
  127.  
  128.  
  129. Tk                                                              2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. menu(n)                    Tk Commands
  137.  
  138.  
  139.  
  140.      in  the global variable.  A selector box is displayed to the
  141.      left of the label in a check-button entry.  If the entry  is
  142.      selected  then  the  box's  center is displayed in the color
  143.      given by the selector option for  the  menu;  otherwise  the
  144.      box's  center  is  displayed in the background color for the
  145.      menu.  If a -command option is specified for a  check-button
  146.      entry,  then  its  value  is evaluated as a Tcl command each
  147.      time the entry is invoked;  this happens after toggling  the
  148.      entry's selected state.
  149.  
  150.  
  151. RADIO-BUTTON ENTRIES
  152.      A radio-button menu entry behaves much like  a  radio-button
  153.      widget.   Radio-button  entries  are  organized in groups of
  154.      which only one entry may be selected at a time.  Whenever  a
  155.      particular  entry  becomes  selected  it stores a particular
  156.      value into a particular global variable  (as  determined  by
  157.      the  -value  and  -variable  options  for  the entry).  This
  158.      action causes any  previously-selected  entry  in  the  same
  159.      group   to  deselect  itself.   Once  an  entry  has  become
  160.      selected, any change to the entry's associated variable will
  161.      cause  the  entry  to  deselect  itself.  Grouping of radio-
  162.      button entries is determined by their associated  variables:
  163.      if  two  entries have the same associated variable then they
  164.      are in the same group.  A selector diamond is  displayed  to
  165.      the  left  of  the label in each radio-button entry.  If the
  166.      entry is selected then the diamond's center is displayed  in
  167.      the  color given by the selector option for the menu; other-
  168.      wise the diamond's center is  displayed  in  the  background
  169.      color for the menu.  If a -command option is specified for a
  170.      radio-button entry, then its value is  evaluated  as  a  Tcl
  171.      command  each time the entry is invoked;  this happens after
  172.      selecting the entry.
  173.  
  174.  
  175. CASCADE ENTRIES
  176.      A cascade entry is one with an associated  menu  (determined
  177.      by  the  -menu option).  Cascade entries allow the construc-
  178.      tion of cascading menus.  When the entry is  activated,  the
  179.      associated  menu  is  posted just to the right of the entry;
  180.      that menu remains posted  until  the  higher-level  menu  is
  181.      unposted  or  until  some  other  entry  is activated in the
  182.      higher-level menu.  The associated menu should normally be a
  183.      child of the menu containing the cascade entry, in order for
  184.      menu traversal to work correctly.
  185.  
  186.      A cascade entry posts its associated menu by invoking a  Tcl
  187.      command of the form
  188.  
  189.                _m_e_n_u post _x _y
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Tk                                                              3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. menu(n)                    Tk Commands
  203.  
  204.  
  205.  
  206.      where _m_e_n_u is the path name of the associated menu, _x and  _y
  207.      are the root-window coordinates of the upper-right corner of
  208.      the cascade entry, and _g_r_o_u_p is the name of the menu's group
  209.      (as  determined  in  its  last  post  widget  command).  The
  210.      lower-level menu is unposted by executing a Tcl command with
  211.      the form
  212.  
  213.                _m_e_n_u unpost
  214.  
  215.      where _m_e_n_u is the name of the associated menu.
  216.  
  217.      If a -command option is specified for a cascade  entry  then
  218.      it  is  evaluated  as a Tcl command each time the associated  |
  219.      menu is posted (the evaluation occurs  before  the  menu  is  |
  220.      posted).
  221.  
  222.  
  223. WIDGET COMMAND
  224.      The menu command creates a new Tcl  command  whose  name  is
  225.      _p_a_t_h_N_a_m_e.  This command may be used to invoke various opera-
  226.      tions on the widget.  It has the following general form:
  227.  
  228.           _p_a_t_h_N_a_m_e _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
  229.  
  230.      _O_p_t_i_o_n and the _a_r_gs determine the exact behavior of the com-
  231.      mand.
  232.  
  233.      Many of the widget commands for a menu take as one  argument
  234.      an  indicator  of  which  entry  of  the menu to operate on.
  235.      These indicators are called _i_n_d_e_xes and may be specified  in
  236.      any of the following forms:
  237.  
  238.      _n_u_m_b_e_r      Specifies  the  entry   numerically,   where   0
  239.                  corresponds to the top-most entry of the menu, 1
  240.                  to the entry below it, and so on.
  241.  
  242.      active      Indicates the entry that  is  currently  active.
  243.                  If   no  entry  is  active  then  this  form  is
  244.                  equivalent to none.  This form may not be abbre-
  245.                  viated.
  246.  
  247.      last        Indicates the bottommost entry in the menu.   If
  248.                  there  are no entries in the menu then this form
  249.                  is equivalent to none.  This  form  may  not  be
  250.                  abbreviated.
  251.  
  252.      none        Indicates ``no entry at  all'';   this  is  used
  253.                  most  commonly with the activate option to deac-
  254.                  tivate all the entries in  the  menu.   In  most
  255.                  cases  the  specification of none causes nothing
  256.                  to happen in the widget command.  This form  may
  257.                  not be abbreviated.
  258.  
  259.  
  260.  
  261. Tk                                                              4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. menu(n)                    Tk Commands
  269.  
  270.  
  271.  
  272.      @_n_u_m_b_e_r     In  this  form,  _n_u_m_b_e_r  is  treated  as  a   y-
  273.                  coordinate  in  the  menu's  window;   the entry
  274.                  spanning that y-coordinate is used.   For  exam-
  275.                  ple,  ``@0'' indicates the top-most entry in the
  276.                  window.  If _n_u_m_b_e_r is outside the range  of  the
  277.                  window then this form is equivalent to none.
  278.  
  279.      _p_a_t_t_e_r_n     If the index doesn't satisfy one  of  the  above
  280.                  forms  then  this  form  is  used.   _P_a_t_t_e_r_n  is
  281.                  pattern-matched against the label of each  entry
  282.                  in the menu, in order from the top down, until a
  283.                  matching  entry  is   found.    The   rules   of
  284.                  Tcl_StringMatch are used.
  285.  
  286.      The following widget commands are possible for menu widgets:
  287.  
  288.      _p_a_t_h_N_a_m_e activate _i_n_d_e_x
  289.           Change the state of the entry  indicated  by  _i_n_d_e_x  to
  290.           active  and  redisplay it using its active colors.  Any
  291.           previously-active entry is deactivated.   If  _i_n_d_e_x  is
  292.           specified  as  none,  or if the specified entry is dis-
  293.           abled, then the menu ends  up  with  no  active  entry.
  294.           Returns an empty string.
  295.  
  296.      _p_a_t_h_N_a_m_e add _t_y_p_e ?_o_p_t_i_o_n _v_a_l_u_e _o_p_t_i_o_n _v_a_l_u_e ...?
  297.           Add a new entry to the bottom of  the  menu.   The  new
  298.           entry's  type  is given by _t_y_p_e and must be one of cas-
  299.           cade, checkbutton, command, radiobutton, or  separator,
  300.           or a unique abbreviation of one of the above.  If addi-
  301.           tional arguments are present, they specify any  of  the
  302.           following options:
  303.  
  304.           -activebackground _v_a_l_u_e
  305.                Specifies a background color to use for displaying  |
  306.                this  entry  when it is active.  If this option is  |
  307.                specified as an empty string (the  default),  then  |
  308.                the  activeBackground  option for the overall menu  |
  309.                is used.  This option is not available for separa-  |
  310.                tor entries.
  311.  
  312.           -accelerator _v_a_l_u_e
  313.                Specifies a string to display at the right side of
  314.                the menu entry.  Normally describes an accelerator
  315.                keystroke sequence that may be typed to invoke the
  316.                same  function  as the menu entry.  This option is
  317.                not available for separator entries.
  318.  
  319.           -background _v_a_l_u_e
  320.                Specifies a background color to use for displaying  |
  321.                this entry when it is in the normal state (neither  |
  322.                active nor disabled).  If this option is specified  |
  323.                as   an  empty  string  (the  default),  then  the  |
  324.  
  325.  
  326.  
  327. Tk                                                              5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. menu(n)                    Tk Commands
  335.  
  336.  
  337.  
  338.                background option for the overall  menu  is  used.  |
  339.                This   option   is  not  available  for  separator  |
  340.                entries.
  341.  
  342.           -bitmap _v_a_l_u_e
  343.                Specifies a bitmap to display in the menu  instead
  344.                of  a  textual label, in any of the forms accepted
  345.                by Tk_GetBitmap.  This option overrides the -label
  346.                option  but  may  be  reset  to an empty string to
  347.                enable a textual  label  to  be  displayed.   This
  348.                option is not available for separator entries.
  349.  
  350.           -command _v_a_l_u_e
  351.                For command, checkbutton, and radiobutton entries,
  352.                specifies  a  Tcl command to execute when the menu  |
  353.                entry is invoked.  For cascade entries,  specifies  |
  354.                a  Tcl  command  to  execute  when  the  entry  is  |
  355.                activated  (i.e.  just  before  its   submenu   is  |
  356.                posted).  Not available for separator entries.
  357.  
  358.           -font _v_a_l_u_e
  359.                Specifies the font to use when drawing  the  label  |
  360.                or  accelerator  string  in  this  entry.  If this  |
  361.                option  is  specified  as  an  empty  string  (the  |
  362.                default) then the font option for the overall menu  |
  363.                is used.  This option is not available for separa-  |
  364.                tor entries.
  365.  
  366.           -label _v_a_l_u_e
  367.                Specifies a string to display  as  an  identifying
  368.                label  in  the  menu  entry.   Not  available  for
  369.                separator entries.
  370.  
  371.           -menu _v_a_l_u_e
  372.                Available only for cascade entries.  Specifies the
  373.                path name of the menu associated with this entry.
  374.  
  375.           -offvalue _v_a_l_u_e
  376.                Available only for check-button  entries.   Speci-
  377.                fies  the value to store in the entry's associated
  378.                variable when the entry is deselected.
  379.  
  380.           -onvalue _v_a_l_u_e
  381.                Available only for check-button  entries.   Speci-
  382.                fies  the value to store in the entry's associated
  383.                variable when the entry is selected.
  384.  
  385.           -state _v_a_l_u_e
  386.                Specifies one of three states for the entry:  nor-  |
  387.                mal,  active,  or  disabled.   In normal state the  |
  388.                entry is displayed using the foreground option for  |
  389.                the  menu and the background option from the entry  |
  390.  
  391.  
  392.  
  393. Tk                                                              6
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. menu(n)                    Tk Commands
  401.  
  402.  
  403.  
  404.                or the menu.  The active state is  typically  used  |
  405.                when  the  pointer  is  over the entry.  In active  |
  406.                state the entry is displayed using the activeFore-  |
  407.                ground   option   for  the  menu  along  with  the  |
  408.                activebackground option from the entry.   Disabled  |
  409.                state  means  that  the  entry is insensitive:  it  |
  410.                doesn't activate and doesn't respond to mouse but-  |
  411.                ton  presses or releases.  In this state the entry  |
  412.                is displayed according to  the  disabledForeground  |
  413.                option for the menu and the background option from  |
  414.                the entry.   This  option  is  not  available  for  |
  415.                separator entries.                                  |
  416.  
  417.           -underline _v_a_l_u_e                                              ||
  418.                Specifies  the  integer  index  of  a character to  |
  419.                underline in the entry.  This option is  typically  |
  420.                used to indicate keyboard traversal characters.  0  |
  421.                corresponds to the first  character  of  the  text  |
  422.                displayed  in  the entry, 1 to the next character,  |
  423.                and so on.  If a bitmap is displayed in the  entry  |
  424.                then  this  option is ignored.  This option is not  |
  425.                available for separator entries.
  426.  
  427.           -value _v_a_l_u_e
  428.                Available only for radio-button  entries.   Speci-
  429.                fies  the value to store in the entry's associated
  430.                variable when the entry is selected.
  431.  
  432.           -variable _v_a_l_u_e
  433.                Available only for check-button  and  radio-button
  434.                entries.   Specifies the name of a global value to
  435.                set when the entry is selected.  For  check-button
  436.                entries the variable is also set when the entry is
  437.                deselected.  For  radio-button  entries,  changing
  438.                the  variable  causes the currently-selected entry
  439.                to deselect itself.
  440.  
  441.           The add widget command returns an empty string.
  442.  
  443.      _p_a_t_h_N_a_m_e configure ?_o_p_t_i_o_n? ?_v_a_l_u_e _o_p_t_i_o_n _v_a_l_u_e ...?
  444.           Query  or  modify  the  configuration  options  of  the
  445.           widget.   If  no  _o_p_t_i_o_n  is  specified, returns a list
  446.           describing all of the available  options  for  _p_a_t_h_N_a_m_e
  447.           (see  Tk_ConfigureInfo for information on the format of
  448.           this list).  If _o_p_t_i_o_n is specified with no _v_a_l_u_e, then
  449.           the  command  returns  a  list describing the one named
  450.           option (this list will be identical to the  correspond-
  451.           ing  sublist  of  the  value  returned  if no _o_p_t_i_o_n is
  452.           specified).  If one  or  more  _o_p_t_i_o_n-_v_a_l_u_e  pairs  are
  453.           specified,  then  the command modifies the given widget
  454.           option(s) to have the given value(s);  in this case the
  455.           command  returns  an empty string.  _O_p_t_i_o_n may have any
  456.  
  457.  
  458.  
  459. Tk                                                              7
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. menu(n)                    Tk Commands
  467.  
  468.  
  469.  
  470.           of the values accepted by the menu command.
  471.  
  472.      _p_a_t_h_N_a_m_e delete _i_n_d_e_x_1 ?_i_n_d_e_x_2?
  473.           Delete all of  the  menu  entries  between  _i_n_d_e_x_1  and  |
  474.           _i_n_d_e_x_2   inclusive.   If  _i_n_d_e_x_2  is  omitted  then  it  |
  475.           defaults to _i_n_d_e_x_1.  Returns an empty string.
  476.  
  477.      _p_a_t_h_N_a_m_e disable _i_n_d_e_x
  478.           Change the state of the entry given by  _i_n_d_e_x  to  dis-  |
  479.           abled  and  redisplay  the  entry  using  its  disabled  |
  480.           colors.  Returns an  empty  string.   This  command  is  |
  481.           obsolete and will eventually be removed; use ``_p_a_t_h_N_a_m_e  |
  482.           entryconfigure _i_n_d_e_x -state disabled'' instead.
  483.  
  484.      _p_a_t_h_N_a_m_e enable _i_n_d_e_x
  485.           Change the state of the entry given by _i_n_d_e_x to  normal  |
  486.           and  redisplay  the  entry  using  its  normal  colors.  |
  487.           Returns an empty string.  This command is obsolete  and  |
  488.           will eventually be removed; use ``_p_a_t_h_N_a_m_e entryconfig-  |
  489.           ure _i_n_d_e_x -state normal'' instead.
  490.  
  491.      _p_a_t_h_N_a_m_e entryconfigure _i_n_d_e_x ?_o_p_t_i_o_n_s?
  492.           This command  is  similar  to  the  configure  command,
  493.           except that it applies to the options for an individual
  494.           entry, whereas configure applies to the options for the
  495.           menu  as  a  whole.  _O_p_t_i_o_n_s may have any of the values
  496.           accepted by the add widget  command.   If  _o_p_t_i_o_n_s  are
  497.           specified,  options  are  modified  as indicated in the
  498.           command and the command returns an empty string.  If no
  499.           _o_p_t_i_o_n_s  are  specified,  returns a list describing the
  500.           current options for entry _i_n_d_e_x  (see  Tk_ConfigureInfo
  501.           for information on the format of this list).
  502.  
  503.      _p_a_t_h_N_a_m_e index _i_n_d_e_x
  504.           Returns the numerical index corresponding to _i_n_d_e_x,  or
  505.           none if _i_n_d_e_x was specified as none.
  506.  
  507.      _p_a_t_h_N_a_m_e invoke _i_n_d_e_x
  508.           Invoke the action of the menu entry.  See the  sections
  509.           on  the  individual  entries  above for details on what
  510.           happens.  If the menu entry is  disabled  then  nothing
  511.           happens.  If the entry has a command associated with it
  512.           then the result of that  command  is  returned  as  the
  513.           result  of  the  invoke  widget command.  Otherwise the
  514.           result is an empty  string.   Note:   invoking  a  menu
  515.           entry does not automatically unpost the menu.  Normally
  516.           the associated menubutton will take care  of  unposting
  517.           the menu.
  518.  
  519.      _p_a_t_h_N_a_m_e post _x _y
  520.           Arrange for the menu to be displayed on the  screen  at
  521.           the  root-window  coordinates  given by _x and _y.  These
  522.  
  523.  
  524.  
  525. Tk                                                              8
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. menu(n)                    Tk Commands
  533.  
  534.  
  535.  
  536.           coordinates are adjusted if necessary to guarantee that
  537.           the entire menu is visible on the screen.  This command
  538.           normally returns an empty string.  If the  -postcommand  |
  539.           option  has  been specified, then its value is executed  |
  540.           as a Tcl script before posting the menu and the  result  |
  541.           of  that  script  is returned as the result of the post  |
  542.           widget command.  If an error  returns  while  executing  |
  543.           the command, then the error is returned without posting  |
  544.           the menu.
  545.  
  546.      _p_a_t_h_N_a_m_e unpost
  547.           Unmap the window so that it is no longer displayed.  If
  548.           a  lower-level  cascaded  menu  is  posted, unpost that
  549.           menu.  Returns an empty string.
  550.  
  551.      _p_a_t_h_N_a_m_e yposition _i_n_d_e_x
  552.           Returns a decimal string giving the y-coordinate within
  553.           the  menu  window  of  the  topmost  pixel in the entry
  554.           specified by _i_n_d_e_x.
  555.  
  556.  
  557.  
  558. DEFAULT BINDINGS
  559.      Tk automatically creates class bindings for menus that  give  |
  560.      them the following default behavior:                          |
  561.  
  562.      [1]                                                                ||
  563.           When  the  mouse cursor enters a menu, the entry under-  |
  564.           neath the mouse cursor  is  activated;   as  the  mouse  |
  565.           moves  around  the  menu,  the  active entry changes to  |
  566.           track the mouse.                                         |
  567.  
  568.      [2]                                                                ||
  569.           When button 1 is released over a menu, the active entry  |
  570.           (if any) is invoked.                                     |
  571.  
  572.      [3]                                                                ||
  573.           A menu can be repositioned on the screen by dragging it  |
  574.           with mouse button 2.                                     |
  575.  
  576.      [4]                                                                ||
  577.           A  number of other bindings are created to support key-  |
  578.           board  menu  traversal.   See  the  manual  entry   for  |
  579.           tk_bindForTraversal for details on these bindings.       |
  580.  
  581.      Disabled  menu  entries  are  non-responsive:   they   don't  |
  582.      activate and ignore mouse button presses and releases.        |
  583.  
  584.      The behavior of menus can be changed by defining  new  bind-  |
  585.      ings for individual widgets or by redefining the class bind-  |
  586.      ings.
  587.  
  588.  
  589.  
  590.  
  591. Tk                                                              9
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. menu(n)                    Tk Commands
  599.  
  600.  
  601.  
  602. BUGS
  603.      At present it isn't possible to use the option  database  to  |
  604.      specify values for the options to individual entries.
  605.  
  606.  
  607. KEYWORDS
  608.      menu, widget
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. Tk                                                             10
  658.  
  659.  
  660.  
  661.